package day0216;

public class Demo04 {


    public static void main(String[] args) {
        Student[] stus = new Student[3];

        Student student = new Student("阿大", 28, '男');
        stus[0] = student;

        stus[1] = new Student("阿二", 28, '女');

        stus[2] = new Student();

        stus[2].name = "阿三";
        stus[2].age = 26;
        stus[2].gender = '男';

//        stus[1].say();

        for (int i = 0; i <= stus.length - 1; i++) {
            stus[i].say();
        }
    }
}
